package com.ninth_group.mapper;

import com.ninth_group.po.City;
import com.ninth_group.vo.ProvinceCitiesVO;
import org.mapstruct.factory.Mappers;

import java.util.List;

public interface ProvinceCitiesVOMapper {
    ProvinceCitiesVOMapper INSTANCE = Mappers.getMapper(ProvinceCitiesVOMapper.class);

    /**
     * 将PCWeatherInfo对象转换为PCWeatherInfoVO对象
     * @param city City实体类
     * @return PCWeatherInfoVO对象
     */
    ProvinceCitiesVO toVo(City city);

    // 将PCWeatherInfo列表转换为PCWeatherInfoVO列表
    List<ProvinceCitiesVO> toVo(List<City> list);
}
